const express = require('express')
const bodyParser = require('body-parser')
const router = require('./router')

let app = express()
app.engine('html', require('express-art-template'))
app.set('views', 'pages')
app.use('/assets', express.static('./assets'))

app.use(bodyParser.urlencoded({ extended: false }))

app.use(router)

app.listen(8080, () => {
  console.log('server is runing...');

})

